package com.supinfo.sun.sungamers.gui;

import java.util.ResourceBundle;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;

/**
 * @author Liu, Bing(Locke)
 * @since 2011-6-5
 * @version 0.3
 */
public class ListPersonsFrame extends JFrame {
	
	private JTable table;
	
	private ResourceBundle myBundle;

	public ListPersonsFrame() {
		myBundle = ResourceBundle.getBundle("com.supinfo.sun.sungamers.lang.sungame");
		
		this.setSize(300, 300);
		
		this.setTitle(myBundle.getString("listPersons"));
		
		this.setLocationRelativeTo(null);
		
		table = new JTable(new PersonTableModel());
		
		JScrollPane scrPane = new JScrollPane(table);
		
		this.add(scrPane);
		
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
		this.setVisible(true);
	}
	
}
